package com.kt.dion.golf.data.golfzone;

import java.util.ArrayList;

import com.kt.dion.golf.data.Data;
import com.kt.dion.golf.util.Log;

public class GolfZoneSearchData extends Data
{
	private ArrayList arrPlace = new ArrayList();

	public void addPlace(Place place)
	{
		arrPlace.add(place);
	}

	public Place getPlace(int i)
	{
		if (i < arrPlace.size())
			return (Place) arrPlace.get(i);
		return null;
	}

	public int getDataSize()
	{
		if (arrPlace.isEmpty())
			Log.outLine(" arrPlace is empty !!!!!!!!!!!!");
		return arrPlace.size();
	}

	public class Place
	{
		String code;
		String name;

		public String getCode()
		{
			return code;
		}

		public void setCode(String code)
		{
			this.code = code;
		}

		public String getName()
		{
			return name;
		}

		public void setName(String name)
		{
			this.name = name;
		}
	}

	public void dispose(boolean isDisposeOfPage)
	{
		arrPlace.clear();
		arrPlace = null;
	}

	public String toString()
	{
		return null;
	}
}
